home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / SNNSV32.ZIP / SNNSv3.2 / xgui / sources / ui_funcdispl.ph < prev    next >
Encoding:
Text File  |  1994-04-25  |  2.4 KB  |  73 lines

  1. /*****************************************************************************
  2.   FILE           : ui_funcdispl.ph
  3.   SHORTNAME      : funcdispl
  4.   SNNS VERSION   : 3.2
  5.  
  6.   PURPOSE        : Header file of correspondent '.c' file
  7.   NOTES          :
  8.  
  9.   AUTHOR         : Guenter Mamier 
  10.   DATE           : 14.01.92
  11.  
  12.   CHANGED BY     : Sven Doering
  13.   IDENTIFICATION : @(#)ui_funcdispl.ph    1.6 3/2/94
  14.   SCCS VERSION   : 1.6
  15.   LAST CHANGE    : 3/2/94
  16.  
  17.              Copyright (c) 1990-1994  SNNS Group, IPVR, Univ. Stuttgart, FRG
  18.  
  19. ******************************************************************************/
  20.  
  21.  
  22. #ifndef _UI_FUNCDISPL_DEFINED_
  23. #define _UI_FUNCDISPL_DEFINED_
  24.  
  25.  
  26. /* begin global definition section */
  27.  
  28. /* required functions that are declared here */
  29. void                ui_functionPopup(Widget w, char *title, caddr_t call_data);
  30. void                ui_drawFunction(Widget w, char *title, caddr_t call_data);
  31. Widget              ui_createMyScreen(char *name, Widget parent, Dimension width, Dimension height, Widget left, Widget top);
  32.  
  33. /* end global definition section */
  34.  
  35. /* begin private definition section */
  36.  
  37.  
  38. typedef FlintType (*ActFunctionPtr) (struct Unit *);
  39. typedef FlintType (*OutFunctionPtr) (FlintType);
  40.     /* Old Style : typedef FlintType (*FunctionPtr) (...); */
  41.  
  42. static Widget displaywidget[6];
  43.  
  44. typedef struct chain_el{
  45.     FlintType weight;
  46.     struct chain_el *next;
  47. }chain_el;
  48. static struct chain_el *weight_chain;
  49. static struct chain_el *handle;
  50.  
  51.  
  52. /* global variables for this file */
  53. static int FUNC_GRAPH_created[6];
  54. static int FUNC_GRAPH_win_ex[6];
  55. static int FUNC_GRAPH_case;
  56. static Widget FUNC_GRAPH_x_minW[6],FUNC_GRAPH_x_labW[6],FUNC_GRAPH_x_maxW[6];
  57. static Widget FUNC_GRAPH_y_minW[6],FUNC_GRAPH_y_labW[6],FUNC_GRAPH_y_maxW[6];
  58. static float  FUNC_GRAPH_x_min[6],FUNC_GRAPH_x_max[6];
  59. static float  FUNC_GRAPH_y_min[6],FUNC_GRAPH_y_max[6];
  60. static GC                    FUNC_GRAPH_gc[6];     /* local grapic context          */
  61. static Window                FUNC_GRAPH_window[6]; /* w. where func is drawn        */
  62. static int                   FUNC_GRAPH_screen;    /* screen for FUNC_GRAPH_window  */
  63.  
  64. static void                ui_setXY(Widget w, caddr_t call_data);
  65. static void                local_kill(Widget dummy, Widget w, caddr_t call_data);
  66. static void                local_kill_prot(Widget dummy, int thiscase, caddr_t call_data);
  67.  
  68. /* end private definition section */
  69.  
  70.  
  71. #endif
  72.  
  73.